#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    char command[4096] = "pkexec /opt/xxx-ext4/xxx-ext4 ";
    for (int i = 1; i < argc; i++)
    {
        strncat(command, argv[i], 1000);
        strcat(command, " ");
    }
    printf("run sh: %s\n", command);
    system(command);

    system("bash -c \"[ $XAUTHORITY ] && export DISPLAY=:0 && sleep 0.5 && xdotool search --class dde-file-manager  key --window %@ F5 \" ");

}